package com.example.dicos.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.dicos.entity.ManHour;
import com.example.dicos.entity.vo.HostVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @description:
 * @author: 朱超
 * @createDate: 2022/7/15
 * @version: 1.0
 * @remark：备注
 */
@Component
public interface ManHourMapper extends BaseMapper<ManHour> {
    /**
     * 统计当前用户的工时
     */
    List<HostVo> statisticsUserHour(Long userId,String date);

    /**
     * 统计所有工时
     */
    List<HostVo> statisticsHour(@Param("date") String date);
}
